import { createApp } from 'vue'
import { useNuTui } from "./plugins";
import Layout from "@/components/layout/index.vue"
import { getSystem } from '@/hooks/useTaro'
import { useStore } from '@/stores'
import 'uno.css'
import './app.scss'


const App = createApp({
  async onLaunch(){
    await getSystem()
  },
  onShow(options) {
    console.log("init",options)
  },
  // 入口组件不需要实现 render 方法，即使实现了也会被 taro 所覆盖
})

useNuTui(App)
useStore(App)
App.component("Layout", Layout);
export default App
